//
//  GRXLoginView.m
//  1-MushroomStreet-自定义tabbar
//
//  Created by xmg on 16/1/11.
//  Copyright © 2016年 grx. All rights reserved.
//

#import "GRXLoginView.h"
#import "GRXLoginRegistView.h"


@interface GRXLoginView ()

/**登录view*/
@property (nonatomic, weak) GRXLoginRegistView *loginView;

/**第三方快速登录view*/
@property (nonatomic, weak) GRXLoginRegistView *fastLoginView;

@end

@implementation GRXLoginView

+ (instancetype)grx_loginView{
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];
}

- (void)awakeFromNib{
    
    GRXLoginRegistView *loginView = [GRXLoginRegistView loginView];
    self.loginView = loginView;
    [self addSubview:loginView];
    
    GRXLoginRegistView *fastLoginView = [GRXLoginRegistView fastLoginView];
    self.fastLoginView = fastLoginView;
    [self addSubview:fastLoginView];
    
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    self.loginView.frame = CGRectMake(0, 64 + 30, kScreenW, 216);
    
    
    self.fastLoginView.frame = CGRectMake(0, 667 - 120 - 44, kScreenW, 120);
}

@end
